package com.rbs.service.Impl;

import com.rbs.dao.Impl.PhoneDaoImpl;
import com.rbs.dao.PhoneDao;
import com.rbs.entity.Phone;
import com.rbs.service.PhoneService;

import java.util.List;

public class PhoneServiceImpl implements PhoneService {
    private PhoneDao phoneDao = new PhoneDaoImpl();
    @Override
    public List<Phone> selectAll() {
        return phoneDao.selectAll();
    }

    @Override
    public List<Phone> selectByPage(int start, int PageSize) {
        return phoneDao.selectByPage(start,PageSize);
    }

    @Override
    public int selectCount() {
        return phoneDao.selectCount();
    }
}
